serial.c File Reference

#include <string.h>
#include <inttypes.h>
#include "uart.h"
#include "serial.h"

Include dependency graph for serial.c:


Functions

void uart_send_buf (uint8_t *buf, uint8_t len)
int serialize_msg (cmd_msg_t *p_msg, uint8_t *buf, int payloadlen)
void led_on ()
void led_off ()
void sample_temp ()
void print_msg (const char *buf, int len)
void print_num (int num)

Function Documentation

void led_off (  ) 

Send a uart cmd_msg to turn off the LCD's led.

Here is the call graph for this function:

void led_on (  ) 

Send a uart cmd_msg to turn on the LCD's led.

Here is the call graph for this function:

void print_msg ( const char *  buf,
int  len 
)

Display the string on the LCD's display.

Here is the call graph for this function:

void print_num ( int  num  ) 

Display a number on the LCD's display.

Here is the call graph for this function:

void sample_temp (  ) 

Send a uart cmd_msg to sample temperature using Raven's on-board temperature sensor. The temperature value will be shown on the LCD.

Here is the call graph for this function:

int serialize_msg ( cmd_msg_t p_msg,
uint8_t *  buf,
int  payloadlen 
)

Serialize a cmd_msg structure with its variable payload size specified by payloadlen and copy it into buf.

void uart_send_buf ( uint8_t *  buf,
uint8_t  len 
)

Send a preamble and then a stream of bytes synchronously over the UART.


Generated on Mon May 5 16:38:42 2008 for ASD Tutorial Lesson 2: Ping by  doxygen 1.5.5